package com.sxhuayuan.parking.plugin.parking.lifang.request;

public enum ChargeSourceEnum {
    alipay("2"),
    weixin("3"),
    cash("0");
    
    private String code;
    ChargeSourceEnum(String code) {
        this.code = code;
    }
    
    public static ChargeSourceEnum getByName(String name) {
        for (ChargeSourceEnum e : ChargeSourceEnum.values()) {
            if(e.name().equals(name))
                return e;
        }
        return cash;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    
    
}
